﻿/**
 * ...
 * @author Fabien ANTOINE
 * @version 0.1
 */

package xul.elem;

import xul.elem.XulElement;

class Button extends XulElement
{
	public function new( ?o:Dynamic ) { super( o ); }
	
	public var accesskey:Null<String>;
	public var autoCheck:Null<Bool>;
	public var checkState:Null<Int>;
	public var checked:Null<Bool>;
	public var command:Null<String>;
	public var crop:Null<AlignType>;
	public var disabled:Null<Bool>;
	public var dlgtype:Null<DialogType>;
	public var group:Null<String>;
	public var icon:Null<String>;
	public var image:Null<String>;
	public var label:Null<String>;
	public var open:Null<Bool>;
	public var tabindex:Null<Int>;
	public var type:Null<ButtonType>;
}

enum ButtonType
{
	checkbox;
	menu;
	menu_button;
	radio;
	
	// Firefox 3
	repeat;
}